<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-4"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<table width="100%" class="verdana12blacknormal">
	<s:form id="form" method="post" action="updateAllCategory"
		theme="simple">
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Location Edit List
			</td>
		</tr>
		<tr>
			<td>
				<s:actionerror cssClass="Note-red" />
				<s:fielderror></s:fielderror>
			</td>
		</tr>
		<tr>
			<td>

				<table width="100%">
					<tbody>
						<tr align="left">
							<td>
								<s:a
									href="showLocationCategories.htm" cssClass="navi-link"> Top</s:a> <s:set name="id"
										value="%{categoryId}" />
										<s:iterator value="categoryNames">
										-----&gt;
										<s:if test="%{#id == categoryId}">
										<font class="verdana11greynormal">
											<s:property value="categoryName" />
										</font>
										</s:if>

										<s:else>
											<s:a cssClass="verdana11greynormal"
												href="showLocationCategories.htm?categoryId=%{categoryId}">
												<s:property value="categoryName" />
											</s:a>
										</s:else>
									</s:iterator>
							</td>
						</tr>
					</tbody>
				</table>
				</tr>
				<s:if test="%{locationCategoriesList.size > 0 }">
				<tr><td>
				<s:iterator value="locationCategoriesList" status="rowstatus">
					<s:hidden name="locationCategoriesMap['%{categoryId}'].categoryId"
						value="%{categoryId}" />
					<s:hidden name="locationCategoriesMap['%{categoryId}'].sortOrder"
						value="%{sortOrder}" />
					<s:hidden
						name="locationCategoriesMap['%{categoryId}'].locationCategories.categoryId"
						value="%{locationCategories.categoryId}" />
					<s:hidden
						name="locationCategoriesMap['%{categoryId}'].categoryTeaser"
						value="%{categoryTeaser}" />
					<s:hidden name="locationCategoriesMap['%{categoryId}'].categoryType.id"
						value="%{categoryType.id}" />
					<s:hidden name="locationCategoriesMap['%{categoryId}'].description"
						value="%{description}" />
					<s:hidden name="locationCategoriesMap['%{categoryId}'].level"
						value="%{level}" />
					<s:hidden name="locationCategoriesMap['%{categoryId}'].sequence"
						value="%{sequence}" />
					<s:hidden
						name="locationCategoriesMap['%{categoryId}'].mainParentId"
						value="%{mainParentId}" />

					<table border="0" cellpadding="2" cellspacing="0" width="100%">
						<tbody>
							<tr>
								<td align="right" class="verdana12Greybold">
									<s:text
										name="locationCategoriesMap['%{categoryId}'].categoryName" />

								</td>
								<td width="50%">
									<s:textfield theme="simple" cssClass="Textfiled-border"
										name="locationCategoriesMap['%{categoryId}'].categoryName"
										size="30" />
								</td>
							</tr>
						</tbody>
					</table>
				</s:iterator>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<s:submit type="image" src="../Admin-Images/save-chagnes-button.gif" />
				<img style="cursor: pointer;"
					onclick="document.getElementById('form').reset();"
					src="../Admin-Images/reset-button.gif" alt="Reset">
			</td>
		</tr>
		</s:if>
		<s:else>
			<tr align="left" height="25">
				<td COLSPAN="6" align="left" bgcolor="#FFFFFF"
					class="verdana12darkgreybold">
					<br>
					No SubLocations available.
					<br>
				</td>
			</tr>

			<tr>
				<td colspan="2" align="center">
					<img onclick="history.go(-1);" style="cursor: pointer;"
						src="../Admin-Images/ok-button.gif" alt="Cancel">
				</td>
			</tr>
		</s:else>
	</s:form>
</table>